package cn.csdj.sism.service.impl;

import cn.csdj.sism.dao.ExamTypeMapper;
import cn.csdj.sism.pojo.ExamType;
import cn.csdj.sism.service.ExamTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * ExamTypeServiceImpl接口实现类
 * @author 谭世豪
 * 2023/4/10
 */
@Service
public class ExamTypeServiceImpl implements ExamTypeService {
    @Autowired
    private ExamTypeMapper examTypeMapper;
    @Override
    public int insert(ExamType examType) {
        return examTypeMapper.insert(examType);
    }

    @Override
    public int deleteById(Integer id) {
        return examTypeMapper.deleteById(id);
    }

    @Override
    public List<ExamType> selectAll() {
        return examTypeMapper.selectList(null);
    }

    @Override
    public ExamType selectById(Integer id) {
        return examTypeMapper.selectById(id);
    }

    @Override
    public int update(ExamType examType) {
        return examTypeMapper.updateById(examType);
    }
}
